var mydialog = {
    props: ['title'],
    template: '<div class="dialogContianer" >' +
        '<div class="dialogcover"></div>' +
        '<div class="dialog">' +
        '<div class="title">{{!title?"提示":title}}</div>' +
        '<span class="btn" @click="cancel"> 取消</span>' +
        '<span class="btn" @click="confirm">确定</span>' +
        '</div>' +
        '</div>',
    methods: {
        cancel: function () {
            this.$emit('cancel')
        },
        confirm: function () {
            this.$emit('confirm')
        },
    }
}
var mynav = {
    props: ['title'],
    template: '<div class="__myNav">' +
        '<img src="./img/back.png" @click="back" />' +
        '<span>{{title}}</span>' +
        '</div>',
    methods: {
        back: function () {
            this.$emit('back')
        },
    }
}

Vue.component('mydialog', mydialog)
Vue.component('mynav', mynav)